import { Routes, Route } from "react-router-dom";
import React, { useState } from 'react';
import Orders from "./Orders";
import UserList from "../users/UserList";
import UserAdd from "../users/UserAdd";
import NotFound from "@@/view/NotFound";

// import ChatPageWrapper from "../chat/ChatPage";
const ChatPageWrapper = React.lazy(() => import('../chat/ChatPage.jsx'))


const DashboardRoutesView = () => {
    return (
        <div>
            <Routes>
                <Route path="/users/list" element={<UserList />} />
                <Route path="/users/add" element={<UserAdd />} />
                <Route path="/chatlocal" element={<ChatPageWrapper />} />
            </Routes>
        </div>
    )
}

export default DashboardRoutesView
